<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<style type="text/css">

.error
{
color:red;
font-weight:border;
font-size:15;
}
.label
{
font-size:18;
}
</style>

<html>
<head>

</head>
<body>
<html:form action="/RegSubmit">

<table border="1" bgcolor="lightgreen" width="50%" align="center">

<tr><td colspan="3" align="center"><h1>Struts Validation Examples</h1></td></tr>

<tr>
<td class="label">Username</td>
<td><html:text property="uname"/></td>
<td class="error"><html:errors property="uname"/></td>
</tr>

<tr>
<td class="label">Age</td>
<td><html:text property="age"/></td>
<td class="error"><html:errors property="age"/></td>
</tr>

<tr>
<td class="label">Email</td>
<td><html:text property="email"/></td>
<td class="error"><html:errors property="email"/></td>
</tr>

<tr>
<td class="label">DOB[DD/MM/YYYY]</td>
<td><html:text property="dob"/></td>
<td class="error"><html:errors property="dob"/></td>
</tr>


<tr>
<td class="label">DOR[DD/MM/YYYY]</td>
<td><html:text property="dor"/></td>
<td class="error"><html:errors property="dor"/></td>
</tr>

<tr>
<td class="label">Fee Paid</td>
<td><html:text property="fee"/></td>
<td class="error"><html:errors property="fee"/></td>
</tr>

<tr>
<td colspan="3" align="center"><html:submit value="Register"/></td>
</tr>


</table>

</html:form>























</body>
</html>